function DialogWeeklyWage(container, item, options) {
  this._container = container;
  this._item = item;
  this._options = options;

  this._createElements();
};

DialogWeeklyWage.prototype._createElements = function() {
  var gui, input, table, tr, td, _self = this, unique = MiscUtils.unique();
  
  table = document.createElement('table');
  table.style.width = '900px';
  table.style.height = '23px';
  table.cellPadding = 0;
  table.cellSpacing = 0;
  table.id = unique + '_mainTable_table';
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  tr.style.backgroundColor = '#885B5D';
  td = tr.insertCell(-1);
  td.style.width = '80px';
  td.style.height = '23px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '9pt';
  td.style.letterSpacing = '2px';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('C/D'));
  
  td = tr.insertCell(-1);
  td.style.width = '80px';
  td.style.height = '23px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '9pt';
  td.style.letterSpacing = '2px';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('P/D'));
  
  td = tr.insertCell(-1);
  td.style.width = '132px';
  td.style.height = '23px';
  td.style.paddingLeft = '15px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '10pt';
  td.style.textAlign = 'left';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('Payee'));
  
  td = tr.insertCell(-1);
  td.style.width = '135px';
  td.style.height = '23px';
  td.style.paddingLeft = '15px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '10pt';
  td.style.textAlign = 'left';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('Particulars'));
  
  td = tr.insertCell(-1);
  td.style.width = '76px';
  td.style.height = '23px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '10pt';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('Amount'));
  
  td = tr.insertCell(-1);
  td.style.width = '60px';
  td.style.height = '23px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '10pt';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('Hours'));
  
  td = tr.insertCell(-1);
  td.style.width = '205px';
  td.style.height = '23px';
  td.style.paddingLeft = '15px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '10pt';
  td.style.textAlign = 'left';
  td.style.verticalAlign = 'middle';
  td.style.borderRight = 'solid 1px #fff';
  td.appendChild(document.createTextNode('Note'));
  
  td = tr.insertCell(-1);
  td.style.width = '70px';
  td.style.height = '23px';
  td.style.fontWeight = 'bold';
  td.style.color = 'white';
  td.style.fontSize = '10pt';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  
  gui = GuiDialogWeeklyWage.instance(unique);
  new HandleDialogWeeklyWage(gui, this._item, this._options);
};